package com.nightonke.boommenu;

import ohos.agp.components.StackLayout;
import ohos.app.Context;
import ohos.agp.components.AttrSet;


/**
 * Created by Weiping Huang at 23:50 on 16/12/11
 * For Personal Open Source
 * Contact me at 2584541288@qq.com or nightonke@outlook.com
 */

class BMBFrameLayout extends StackLayout {

    private boolean requestLayoutNotFinish = false;

    public BMBFrameLayout(Context context) {
        super(context);
    }

    public BMBFrameLayout(Context context, AttrSet attrs) {
        super(context, attrs);
    }

    public BMBFrameLayout(Context context, AttrSet attrs, String defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    @Override
    public void postLayout() {
        if (requestLayoutNotFinish) return;
        requestLayoutNotFinish = true;
        super.postLayout();
        onLayout();
    }

    //@Override
    protected void onLayout() {
        requestLayoutNotFinish = false;
    }

}
